package cn.iocoder.yudao.module.spot.dto;

import cn.iocoder.yudao.module.spot.entity.SpotEntity;
import org.springframework.beans.BeanUtils;

public class SpotDto {
    private int approveFlag;

    private int pageSize;

    private int pageNum;

    public int getApproveFlag() {
        return approveFlag;
    }

    public void setApproveFlag(int approveFlag) {
        this.approveFlag = approveFlag;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    @Override
    public String toString() {
        return "SpotDto{" +
                "approveFlag=" + approveFlag +
                ", pageSize=" + pageSize +
                ", pageNum=" + pageNum +
                '}';
    }

    public  static SpotEntity toSpotEntity(SpotDto dto){
        SpotEntity spotEntity = new SpotEntity();
        BeanUtils.copyProperties(dto,spotEntity);
        return spotEntity;
    }
}
